SRCS := $(shell find -type f -name '*.c')

# OBJS += main.o
# OBJS += hello.o
OBJS := $(SRCS:.c=.o)

TARGET := main

.PHONY: all clean

all: $(TARGET)
	@./$(TARGET)

$(TARGET): $(OBJS)
	@$(CC) -o $@ $^

clean:
	-@echo "正在清理"
	-@$(RM) $(TARGET) $(OBJS)